package com.example.wang.annotationprocessordemo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;

import com.example.wang.bindview.annotation.BindView;
import com.example.wang.bindview.annotation.OnClick;
import com.example.wang.bindview.api.ViewBinder;

public class MainActivity extends AppCompatActivity {
    @BindView(R.id.text)
    protected TextView textView;
    @BindView(R.id.text2)
    TextView textView2;
    @BindView(R.id.button)
    Button button;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ViewBinder.bind(this);
        textView.setText("啊哈哈哈");
    }
    @OnClick(R.id.button)
    public void onClick(){
        textView2.setText("点我就变");
    }
}
